@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
textbox{
-moz-appearance:none;
cursor:text;
border:1px solid #000;
-moz-border-radius:3px;
background-color:#97989a;
margin:2px 4px;
padding:2px 2px 3px 4px;
color:#000}

textbox[empty="true"]{
color:#000}

html|*.textbox-input,
html|*.textbox-textarea{
border:none!important;
background-color:inherit;
color:inherit;
font:inherit;
margin:0!important;
padding:0!important}

.textbox-contextmenu{
cursor:default}

.textbox-contextmenu > menuitem{
font-size:12px}

textbox[disabled="true"]{
cursor:default;
color:#6d6d6e}

textbox.plain{
background-color:transparent;
border:none!important;
margin:0!important;
padding:0!important;
color:#bfbfbf!important}

.textbox-search-icon{
list-style-image:url(chrome://browser/skin/Search-glass.png);
-moz-image-region:rect(0,16px,16px,0)}

.textbox-search-icon[chromedir="rtl"]{
list-style-image:url(chrome://global/skin/icons/Search-glass-rtl.png)}

.textbox-search-icon[searchbutton]:not([disabled]){
cursor:pointer}

.textbox-search-clear{
list-style-image:url(chrome://global/skin/icons/Search-close.png);
-moz-image-region:rect(0,16px,16px,0)}

.textbox-search-clear:not([disabled]){
cursor:default}

.textbox-search-clear:not([disabled]):hover,
.textbox-search-icon[searchbutton]:not([disabled]):hover{
-moz-image-region:rect(0,32px,16px, 16px)}

.textbox-search-clear:not([disabled]):hover:active,
.textbox-search-icon[searchbutton]:not([disabled]):hover:active{
-moz-image-region:rect(0,48px,16px,32px)}

toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input{
visibility:hidden}

textbox[empty="true"]:-moz-system-metric(windows-default-theme){
font-style:normal}